import {http} from "@/utils/http/axios";


export interface ChanModal {
  chanDesc: string;
  chanId: string;
  chanLevel: string;
  chanName: string;
  chanStatus: string;
  createTime: string;
  gameId: string;
  gameName: string;
  hasReflectbtn: string;
  id: number;
  updateTime: string;
}

/**
 * 获取全部通道
 */
export function getChanList() {
  return http.request({
    url: '/system/chan/all',
    method: 'GET',
  });
}

export function registerChan(params: ChanModal) {
  return http.request({
    url: '/system/chan/regist',
    method: 'POST',
    params
  });
}

export function updateChanManage(params: ChanModal) {
  return http.request({
    url: '/system/chan/update',
    method: 'POST',
    params
  });
}

/**
 * 渠道过滤查询
 */
export function getChanFilter(params) {
  return http.request({
    url: '/system/chan/filter',
    method: 'POST',
    params
  });
}
